package Bussiness;

public class BussinessClass {
    public static void main(String[] args) {
        PersonClass person1 = new PersonClass();
        person1.name = "郭靖";
        person1.age = "12";
        PersonClass.room = "101教室";

        PersonClass person2 = new PersonClass();
        person2.setName("黄蓉");

        System.out.println("第一个人姓名："+ person1.name + "年龄" + person1.age + "教室"+ PersonClass.room);
        System.out.println("第二个人姓名："+ person2.name + "年龄" + person2.age + "教室"+ PersonClass.room);

        methord();
    }


    public  static void methord(){
        /* 求出 -10。8到5.9之间，大于6或者小于2.1的整数有多少 */
        double min = Math.ceil(-10.8);
        double max = Math.floor(5.9);
        for (double i = min; i < max; i++) {
            if (Math.abs(i) <2.1 || Math.abs(i)>6){
                System.out.println(i);
            }
        }

    }
}
